import {Routes,Route} from 'react-router-dom'
import Login from './containers/Login'
import Register from './containers/Register'
import System from './containers/System'
import Student from './components/Student'
import Teacher from './components/Teacher'
import Class from './components/Class'
// import UpdateStu from './components/Student/UpdateStu'
export default function(){
    return (
        <Routes>
            <Route index element={<Login></Login>}/>
            <Route path='/login' element={<Login></Login>}/>
            <Route path='/register' element={<Register></Register>}/>
            <Route path='/system' element={<System></System>}>
                <Route index element={<Student/>} />
                <Route path='student' element={<Student/>} />
                {/* <Route path='updateStu' element={<UpdateStu />} /> */}
                <Route path='teacher' element={<Teacher/>} />
                <Route path='class' element={<Class/>} />
            </Route>
        </Routes>
    )
}